<template>
    <div class="header">
        <div @click="test">header 组件 {{ title }}</div>
    </div>
</template>
  
<script setup>
import { defineProps, defineEmits, ref, onMounted, reactive, toRefs, computed, watch } from 'vue';
defineProps({
    title: {
        type: String,
        default: "默认"
    }
})

const emit = defineEmits(['fas'])

let test = () => {
    emit("fas",'children')
}
</script>


  